#include "region.hpp"

#include <ros/ros.h>

int main(int argc, char *argv[])
{
    ros::init(argc, argv, "region_server_node");
    ros::NodeHandle private_nh("~"); //to receive args

    string config_file_path;
    private_nh.param<std::string>("config_file_path", config_file_path, "./config/villages.json");

    Region r(config_file_path);

    ros::Rate loop_rate(10);
    if (ros::ok)
    {
        /* code */
        ros::spinOnce();
        loop_rate.sleep();
    }
    
    ros::shutdown();
    
    return 0;
}